home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / E-P-O.ZIP / P4DEF_01.INC < prev    next >
Encoding:
Text File  |  1996-10-31  |  5.2 KB  |  155 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //
  4. // p4def_01.inc
  5. //
  6. // "Easy POV Oven"
  7. //
  8. // Written By: Paul T. Dawson
  9. //             ptdawson@voicenet.com
  10. //             http://www.voicenet.com/~ptdawson
  11. //
  12. // All code and techniques are PUBLIC DOMAIN - have fun with it!
  13. //
  14. //------------------------------------------------------------------->
  15. //
  16. // This file builds the girl (Julie) running the "Easy POV Oven".
  17. //
  18. //------------------------------------------------------------------->
  19. //
  20. // Declare the *textures* for everything.
  21.  
  22.         #declare P4_Eye_Texture = texture { pigment { Sapphire_Agate } }
  23.         #declare P4_Glasses_Texture = texture { pigment{SpicyPink} }
  24.  
  25.         #declare P4_Hair_Texture = texture { T_Gold_1A }
  26.  
  27.         #declare P4_Hat_Texture = texture {
  28.                 pigment { spiral1 3
  29.  
  30.                 color_map { [ 0.0, 0.5 color NeonBlue color NeonBlue ]
  31.                             [ 0.5, 1.0 color White color White ] }
  32.  
  33.                 rotate x * 90
  34.                 scale 3
  35.  
  36.                 } // End of pigment.
  37.                 } // End of texture.
  38.  
  39.         #declare P4_Shirt_Texture = texture {
  40.                 pigment {
  41.                         image_map { gif "shirt-2.gif" interpolate 2 }
  42.                         //translate < -0.5, 0, 0 >
  43.                         scale < 10, 2, 1 >
  44.                         } // End of pigment.
  45.                 normal { bumps 0.5 scale 2 }
  46.                 } // End of texture.
  47.  
  48.         #declare P4_Shoe_Texture = texture { pigment{CornflowerBlue} }
  49.  
  50.         #declare P4_Shorts_Texture = texture {
  51.                 pigment { Apocalypse }
  52.                 //scale 1.5
  53.                 //rotate < 33, 33, 33 >
  54.                 normal { bumps 0.2 scale 2 } }
  55.  
  56.         #declare P4_Skin_Texture = texture { pigment { Flesh } }
  57.  
  58. //------------------------------------------------------------------->
  59. //
  60. // Now choose *types* of things. You will have to read the directions
  61. // to see what numbers are legal here!
  62.  
  63.         #declare P4_Eye_Type = 1
  64.         #declare P4_Glasses_Type = 0
  65.         #declare P4_Hair_Type = 3
  66.         #declare P4_Hand_Type = 2
  67.         #declare P4_Hat_Type = 2
  68.         #declare P4_Mouth_Type = 3
  69.         #declare P4_Nose_Type = 1
  70.         #declare P4_Shirt_Type = 2
  71.         #declare P4_Shoe_Type = 3
  72.         #declare P4_Shorts_Type = 3
  73.  
  74. //------------------------------------------------------------------->
  75. //
  76. // Set the sizes of various things.
  77.  
  78.         #declare P4_Leg_Length = 34
  79.         #declare P4_Neck_Height = 3
  80.         #declare P4_Shirt_Height = 22
  81.         #declare P4_Shorts_Height = 12
  82.  
  83. //------------------------------------------------------------------->
  84. //
  85. // Choose the rotation values. Please read the directions!
  86.  
  87.         #declare P4_Hat_Rotate = < 10, 60, 0 >
  88.         #declare P4_Neck_Rotate = < -10, 30, 0 >
  89.         #declare P4_Waist_Rotate = < -10, 20, 0 >
  90.  
  91.         #declare P4_Left_Hand_Rotate = < -40, 0, -40 >
  92.         #declare P4_Right_Hand_Rotate = < 10, 0, 40 >
  93.  
  94.         #declare P4_Left_Elbow_Rotate = < 00, -80, 0 >
  95.         #declare P4_Right_Elbow_Rotate = < 00, 80, 0 >
  96.  
  97.         #declare P4_Left_Eyelid_Rotate = -40
  98.         #declare P4_Right_Eyelid_Rotate = -40
  99.  
  100.         #declare P4_Left_Knee_Rotate = < -10, 0, 0 >
  101.         #declare P4_Right_Knee_Rotate = < -10, 0, 0 >
  102.  
  103.         #declare P4_Left_Leg_Rotate = < 10, 0, -10 >
  104.         #declare P4_Right_Leg_Rotate = < 10, 0, 10 >
  105.  
  106.         #declare P4_Left_Shoulder_Rotate = < -15, -20,  60 >
  107.         #declare P4_Right_Shoulder_Rotate = < -10, 10, -40 >
  108.  
  109. //------------------------------------------------------------------->
  110. //
  111. // Create the optional "holding" object. This will go into the left
  112. // hand, and move with the hand. This is optional - just comment it
  113. // out if not needed, and set the flag to "false".
  114. //
  115. // The flag is necessary to prevent person #2 from carrying the object
  116. // that you gave to person #1. Set it to true or false.
  117.  
  118.         #declare P4_Holding_Flag = false
  119.  
  120. //------------------------------------------------------------------->
  121. //
  122. // Make another optional object - a "bracelet". This also has a flag
  123. // to set on/off. This prevents duplicate bracelets! The bracelet
  124. // should be at <0,0,0>, just like a standard torus.
  125.  
  126.         #declare P4_Bracelet_Flag = false
  127.  
  128. //------------------------------------------------------------------->
  129. //
  130. // Despite my attempts at using "realistic inches" as units, the
  131. // people always seem to end up 8 or 9 feet tall. This variable lets
  132. // you scale the person down to a normal size. Use the P4_TEST.POV
  133. // scene to see how tall your person actually is!
  134.  
  135.         #declare P4_Total_Scale = 80/100
  136.  
  137. //------------------------------------------------------------------->
  138. //
  139. // This is the height to move the person up, so his/her feet are on
  140. // the floor. Sorry, but because of bendable legs, this has to be
  141. // adjusted manually (by YOU). 8-)
  142.  
  143.         #declare P4_Y_Adjust = 28
  144.  
  145. //------------------------------------------------------------------->
  146. //
  147. // Now call "p4_main.inc" to create the object.
  148.  
  149.         #include "p4_main.inc"
  150.  
  151. //------------------------------------------------------------------->
  152. //
  153. // End of this file.
  154.  
  155.